package com.td.module.system.convert.growth;

import com.td.framework.common.pojo.PageResult;
import com.td.module.system.controller.admin.growth.vo.type.*;
import com.td.module.system.dal.dataobject.growth.GrowthModuleTypeAndListDO;
import com.td.module.system.dal.dataobject.growth.GrowthModuleTypeDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 生长模型字典 Convert
 *
 * @author wangxx
 */
@Mapper
public interface GrowthModuleTypeConvert {

    GrowthModuleTypeConvert INSTANCE = Mappers.getMapper(GrowthModuleTypeConvert.class);

    GrowthModuleTypeDO convert(GrowthModuleTypeCreateReqVO bean);

    GrowthModuleTypeDO convert(GrowthModuleTypeUpdateReqVO bean);

    GrowthModuleTypeRespVO convert(GrowthModuleTypeDO bean);

    List<GrowthModuleTypeRespVO> convertList(List<GrowthModuleTypeDO> list);

    PageResult<GrowthModuleTypeRespVO> convertPage(PageResult<GrowthModuleTypeDO> page);

    List<GrowthModuleTypeExcelVO> convertList02(List<GrowthModuleTypeDO> list);

    List<GrowthModuleTypeSimpleRespVO> convertList03(List<GrowthModuleTypeDO> list);
    List<GrowthModuleTypeAndColumnRespVO> convertList04(List<GrowthModuleTypeAndListDO> list);
    GrowthModuleTypeAndColumnRespVO convertColumn(GrowthModuleTypeAndListDO growthModuleTypeAndListDO);
}
